package com.singfan.core.web.context;

import com.singfan.core.SingFanContext;
import org.springframework.web.context.ContextLoaderListener;

import javax.servlet.ServletContextEvent;

/**
 * Summary:
 * Author: james
 * Date: 2015-07-29 12:44
 * Desc:
 */
public class SingFanContextLoaderListener extends ContextLoaderListener {
    public void contextInitialized(ServletContextEvent event) {
        SingFanContext.init();
        this.initWebApplicationContext(event.getServletContext());
    }
}
